using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreData;
using Services;
using Helper;
namespace ActionServices
{

    public interface ISettingActionService:BaseActionService
    {
        long Save(object _model);
        IList<CoreData.Setting> GetListByLINQ(Func<CoreData.Setting, Boolean> _where);
        CoreData.Setting GetOneByLINQ(Func<CoreData.Setting, Boolean> _where);
        bool Delete(object _model);
        CoreData.Setting GetValueByName(string _name);
        CoreData.Setting SetValueByName(string _name, string _value);
    }

    public partial class SettingActionService:ISettingActionService
    {
       SettingService Service;

       public SettingActionService()
       {
           Service = new SettingService();
       }

       #region Main Method

       public virtual long Save(object _model)
       {
           return Service.Save(_model);
       }

       public virtual object GetByID(long _id)
       {
           return Service.GetByID(_id);
       }

       public virtual object GetList()
       {
           return Service.GetList();
       }

       public virtual IList<CoreData.Setting> GetListByLINQ(Func<CoreData.Setting, Boolean> _where)
       {
           return Service.GetListByLINQ(_where);
       }

       public virtual CoreData.Setting GetOneByLINQ(Func<CoreData.Setting, Boolean> _where)
       {
           return Service.GetOneByLINQ(_where);
       }

       public virtual object GetList(string _searchstring)
       {
           return Service.GetList(_searchstring);
       }

       public virtual bool Delete(object _model)
       {
           return Service.Delete(_model);
       }

       #endregion


        #region Other Method
       public virtual CoreData.Setting GetValueByName(string _name)
       {
           return Service.GetValueByName(_name);
       }
       public virtual CoreData.Setting SetValueByName(string _name,string _value)
       {
           return Service.SetValueByName(_name,_value);
       }
        #endregion

    }
         
}
